﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using Htss.Platform.Data;

namespace DreamBox.DAL.User
{
    public static class GetCurrentUser
    {
        /// <summary>
        /// 获取当前用户信息
        /// </summary>
        /// <param name="UserID"></param>
        /// <returns></returns>
        public static DataTable GetUserInfo(int UserID)
        {
            DbAction action = new DbAction("dbox_v_userinfo");
            action.SetFields("*", "", DbFieldType.Query);
            action.SetFields("UserID", UserID, DbFieldType.Condition);
            return action.Select();
        }
    }
}
